package yns.springcloud.oakwood.guide.configure;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope  //开启刷新
public class ServerConfigure {
	
	
	@Value("${db.name}")
	private String dbName;
	
	@Value("${db.pwd}")
	private String dbPwd;

	
	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getDbPwd() {
		return dbPwd;
	}

	public void setDbPwd(String dbPwd) {
		this.dbPwd = dbPwd;
	}

	
}
